/*DrillInfoSign  签到*/
import request from "/@/utils/request";
import download from "/@/utils/download.ts";
import { pa } from "element-plus/es/locale";

const DrillInfoSignApi = {

    getPageData(data: any) {
        return request({
            url: "/drillInfoSign/pageData",
            method: "post",
            data,
        });
    },
    getDetail(data: any) {
        return request({
            url: "/drillInfoSign/getDetail",
            method: "post",
            data,
        });
    },

    save: (data: any) => {
        return request({
            url: "/drillInfoSign/save",
            method: "post",
            data,
        });
    },

    del: (data: any) => {
        return request({
            url: "/drillInfoSign/del",
            method: "post",
            data,
        });
    },

    updateStatus: (data: any) => {
        return request({
            url: "/drillInfoSign/updateStatus",
            method: "post",
            data,
        });
    },

        pageDataXls:(_searchParam: any,_xlsTitle: any) => {
               const param = new URLSearchParams();
            param.append("_searchParam",JSON.stringify(_searchParam))
            param.append("_xlsTitle",_xlsTitle)
            return request({
                url: "/drillInfoSign/pageDataXls",
                method: "post",
                responseType: 'blob',
                headersType: 'application/json;charset=UTF-8',
                 params:param,
            }).then((res)=> {
                download(res)
            });
        },
};
export default DrillInfoSignApi;
